﻿@using System.Web.UI.WebControls
@{
    ViewBag.Title = "文章管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<link href="/Content/page.css" rel="stylesheet" type="text/css" />
<script src="@Url.Content("/Content/js/jquery.paginate.js")" type="text/javascript"></script>
<link rel="stylesheet" href="/Content/kindeditor-4.1.7/themes/default/default.css" />
<link rel="stylesheet" href="/Content/kindeditor-4.1.7/plugins/code/prettify.css" />
<script charset="utf-8" src="@Url.Content("/Content/kindeditor-4.1.7/kindeditor.js")"></script>
<script charset="utf-8" src="@Url.Content("/Content/kindeditor-4.1.7/lang/zh_CN.js")"></script>
<script charset="utf-8" src="@Url.Content("/Content/kindeditor-4.1.7/plugins/code/prettify.js")"></script>
<script src="@Url.Content("/Scripts/Article/Article.js")" type="text/javascript"></script>

<div id="dlg_Edit" style="display: none;">
    @Html.Partial("Edit")
</div>
<form  method="post" id="edit" class="search">
    <input  id="create"  type="button" value="新建文章" class="button">

</form>
@if (ViewBag.IsSingle)
{
    @Html.ActionLink("edit", "SingleList", "Article", new { @class = "search hidden" })    
}
else
{
    @Html.ActionLink("edit", "List", "Article", new { index = 1, size = 15 }, new { @class = "search hidden" })
}
<div class="datalist" href="/Article/List">
    @if (ViewBag.IsSingle)
    {
        Html.RenderAction("SingleList", "Article", new { index = 1, size = 15 });
    }
    else
    {
        Html.RenderAction("List", "Article", new { index = 1, size = 15 });
    }

</div>
@if (!ViewBag.IsSingle)
{
    <div id="pageNum">
    </div>
}
<script type="text/javascript">
    $(document).ready(function () {
        Article.Init();
    });
</script>
